package com.wang.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname Test01Controller
 * @Description TODO
 * @Date 2024/5/10 11:27
 * @Created by pc
 */
@RestController
public class Test01Controller {
    @Value("${my.name}")
    private String name;
    @Value("${my.age}")
    private Integer age;


    @RequestMapping("/test")
    public String test01(){
        return name + " : " + age;
    }
}
